namespace Collaboris.Saf.Actions.Wss.Tests.Generated
{
    using Engine.Report;

    using Microsoft.SharePoint;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using Saf.Tests;
    using Entities;
    using Column;

    using SharePoint.Wss.Lists;

    /// <summary>
    /// This test was originally generated but has now been tested and verfiied by MJ
    /// </summary>
    [TestClass]
    public class AddLookupColumnToListTest
    {

        [TestMethod]
        public void AddLookupColumnToList_Test()
        {
            WSSTestAssistant<AddLookupColumnToList, AddLookupColumnToListInfo> addlookupcolumntolist =
                    new WSSTestAssistant<AddLookupColumnToList, AddLookupColumnToListInfo>(TestEnvironment.PublishingSite, "AddLookupColumnToListTestWeb", "BLANKINTERNET#0");

            using (addlookupcolumntolist)
            {
                MacroReport doReport = addlookupcolumntolist.DoMacro();

                SPList list = SPListHelper.GetList(addlookupcolumntolist.FirstEntity.TargetListUrl);
                SPListHelper.FieldExists(list, addlookupcolumntolist.FirstEntity.TargetListFieldName);
 
            }
        }

    }
}
